<?php

use Illuminate\Http\Request;

Route::any('test', 'IndexController@test');

Route::any('setting/getDataList', 'SettingController@getDataList');    // 获取配置信息
Route::any('setting/updateData', 'SettingController@updateData');      // 更新配置信息
Route::any('setting/getMemberSetting', 'SettingController@getMemberSetting');      // 获取会员套餐设置
Route::any('setting/saveMemberSetting', 'SettingController@saveMemberSetting');      // 更新会员套餐设置
Route::any('setting/generateSubscribe', 'SettingController@generateSubscribe');      // 生成订阅消息

Route::any('broadcaster/getList', 'BroadcasterController@getList');      // up主列表
Route::any('broadcaster/getInfo', 'BroadcasterController@getInfo');      // up主详细信息
Route::any('broadcaster/updateInfo', 'BroadcasterController@updateInfo');      // 更新up主
Route::any('broadcaster/updateStatus', 'BroadcasterController@updateStatus');      // 更新up主状态
Route::any('broadcaster/generateWxBindQrCode', 'BroadcasterController@generateWxBindQrCode');      // 生成微信绑定页面的二维码
Route::any('broadcaster/getWxBindResult', 'BroadcasterController@getWxBindResult');      // 监听微信绑定结果
Route::any('broadcaster/addData', 'BroadcasterController@add');      // 添加
Route::any('broadcaster/delete', 'BroadcasterController@delete');      // 删除
Route::any('broadcaster/getAll', 'BroadcasterController@getAll');      // 可用的up主列表

Route::any('getSign', 'BroadcasterController@getSign'); // 上传视频签名
Route::any('broadcaster/uploadMedia', 'BroadcasterController@saveMediaInfo'); // 更新媒体信息
Route::any('broadcaster/getAllPlayClass', 'BroadcasterController@getAllPlayClass');                                                               // up主所有分类列表

Route::any('vodMedia/getList', 'VodMediaController@getList');      // 视频列表
Route::any('vodMedia/updateMediaInfo', 'VodMediaController@saveMediaInfo');      // 更新视频
Route::any('vodMedia/updateStatus', 'VodMediaController@updateStatus');      // 更新视频状态
Route::any('vodMedia/getMediaInfo', 'VodMediaController@getMediaInfo');      // 获取视频信息
Route::any('vodMedia/deleteMedia', 'VodMediaController@deleteMedia');      // 删除视频

Route::any('course/getCourseList', 'CourseController@getCourseList');      // 获取课程列表
Route::any('course/getCourseInfo', 'CourseController@getCourseInfo');      // 课程详情
Route::any('course/getCourseCatalogList', 'CourseController@getCourseCatalogList');      // 获取课程目录列表
Route::any('course/delCourseCatalog', 'CourseController@delCourseCatalog');      // 删除目录
Route::any('course/toAddCourse', 'CourseController@toAddCourse');      // 添加课程
Route::any('course/toUpdateCourse', 'CourseController@toUpdateCourse');      // 更新课程
Route::any('course/delCourse', 'CourseController@delCourse');      // 删除课程
Route::any('course/getAllCourse', 'CourseController@getAllCourse'); // 获取可用的所有课程

Route::any('carousel/getList', 'CarouselController@getList');      // 轮播图列表
Route::any('carousel/updateStatus', 'CarouselController@updateStatus');      // 更新轮播图状态
Route::any('carousel/create', 'CarouselController@create');      // 创建轮播图
Route::any('carousel/updateInfo', 'CarouselController@updateInfo');      // 更新轮播图信息
Route::any('carousel/getInfo', 'CarouselController@getInfo');      // 获取轮播图信息
Route::any('carousel/delete', 'CarouselController@delete');      // 删除轮播图

Route::any('level/getList', 'LevelController@getList');      // 等级列表
Route::any('level/updateStatus', 'LevelController@updateStatus');      // 更新等级状态
Route::any('level/create', 'LevelController@create');      // 创建等级
Route::any('level/updateInfo', 'LevelController@updateInfo');      // 更新等级信息
Route::any('level/getInfo', 'LevelController@getInfo');      // 获取等级
Route::any('level/delete', 'LevelController@delete');      // 删除等级

Route::any('service/getList', 'ServiceController@getList');      // 服务列表
Route::any('service/getAll', 'ServiceController@getAll');      // 所有服务
Route::any('service/create', 'ServiceController@create');      // 创建服务
Route::any('service/updateInfo', 'ServiceController@updateInfo');      // 更新服务信息
Route::any('service/getInfo', 'ServiceController@getInfo');      // 获取服务
Route::any('service/delete', 'ServiceController@delete');      // 删除服务

Route::any('navigation/getList', 'NavigationController@getList');      // 导航列表
Route::any('navigation/getAll', 'NavigationController@getAll');      // 所有导航
Route::any('navigation/create', 'NavigationController@create');      // 创建导航
Route::any('navigation/updateInfo', 'NavigationController@updateInfo');      // 更新导航信息
Route::any('navigation/getInfo', 'NavigationController@getInfo');      // 获取导航
Route::any('navigation/delete', 'NavigationController@delete');      // 删除导航
Route::any('navigation/updateStatus', 'NavigationController@updateStatus');      // 更新导航状态

Route::any('cat/getList', 'CatController@getList');      // 分区列表
Route::any('cat/updateStatus', 'CatController@updateStatus');      // 更新分区状态
Route::any('cat/create', 'CatController@create');      // 创建分区
Route::any('cat/updateInfo', 'CatController@updateInfo');      // 更新分区信息
Route::any('cat/getInfo', 'CatController@getInfo');      // 获取分区
Route::any('cat/delete', 'CatController@delete');      // 删除分区
Route::any('getAllWxPagePath', 'CatController@getAllWxPath');      // 小程序页面路径

Route::any('dynamic/getDynamicList', 'DynamicController@getDynamicList');      // 动态列表
Route::any('dynamic/delDynamic', 'DynamicController@delDynamic');      // 删除动态

Route::any('comment/getCommentList', 'CommentController@getCommentList');      // 评论列表
Route::any('comment/delComment', 'CommentController@delComment');      // 删除评论

Route::any('user/getListBySetUp', 'UserController@getListBySetUp');      // 获取设置up主的用户列表

Route::any('wxMini/checkUpdate', 'WxMiniProgramController@index');                                                              //  检查小程序更新
Route::any('wxMini/getInvokeCode', 'WxMiniProgramController@getInvokeCode');                                                    //  获取调用码
Route::any('wxMini/loginByMini', 'WxMiniProgramController@loginByMini');                                                        //  获取登录二维码
Route::any('wxMini/previewByMini', 'WxMiniProgramController@previewByMini');                                                    //  预览码
Route::any('wxMini/publishByMini', 'WxMiniProgramController@publishByMini');                                                    //  发布


/** 微信第三方平台相关 */
Route::any('wxEvent/message/{appId}', 'WxController@wxMessage');                                                  // 微信第三方平台的消息与事件接收URL
Route::any('wxEvent/auth', 'WxController@wxAuthEvent');                                                          // 微信第三方平台的授权事件接收URL
Route::any('wxOpen/getAuthorizationUrl', 'WxController@getAuthorizationUrl');                                   // 获取第三方授权地址
Route::any('event/notify', 'WxController@wxNotify');                                                             // 微信第三方授权的回调方法